package forms

type Page struct {
	Num  uint32 `form:"page,default=0" binding:"number"`
	Size uint32 `form:"page_size,default=10" binding:"number"`
}

type PasswordLogin struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required,mobile"`
	Password string `form:"password" json:"password" binding:"required,min=3,max=20"`
}

type Register struct {
	Mobile     string `form:"mobile" json:"mobile" binding:"required,mobile"`
	Password   string `form:"password" json:"password" binding:"required,min=3,max=20"`
	RePassword string `form:"re_password" json:"re_password" binding:"required,min=3,max=20,eqfield=Password"`
	Code       string `form:"code" json:"code" binding:"required,min=4,max=8"`
}
